package org.example.command;

import org.example.editor.Editor;

public class SaveFileCommand implements Command {
    private Editor editor;
    private Integer fileNumber;

    public SaveFileCommand(Editor editor,Integer fileNumber) {
        this.editor = editor;
        this.fileNumber = fileNumber;
    }

    @Override
    public void excute() {
        editor.saveFile(fileNumber);
    }
}
